package com.wwmz.bridge.pattern.message;

/**
 * Created by wumz on 2020/9/21 14:12
 */
public class Test {

    public static void main(String[] args) {
        IMessage message = new SmsMessage();
        AbstractMessage normalMessage = new NormalMessage(message);
        normalMessage.createMessage("加班审批","老哥");

        AbstractMessage urgencyMessage = new UrgencyMessage(message);
        urgencyMessage.createMessage("加班审批","老哥");
    }
}
